#ifndef _INFO_WINDOW_H
#define _INFO_WINDOW_H

#include <QWidget>
#include <Define.h>

class GameEngine;
class Player;
class QLabel;
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QTextEdit;
class QSizePolicy;

class InfoWindow : public QWidget
{
	Q_OBJECT
	
	public:
		//Constructor
		InfoWindow(QWidget *parent=0);
		void connecting( GameEngine* );
		
	private:
		QLabel *colorP1, *colorP2,
			*scoreP1Label, *scoreP2Label,
			*movesP1Label, *movesP2Label,
			*nameP1, *nameP2,
			*scoreP1, *scoreP2,
			*movesP1, *movesP2,
			*typeP1, *typeP2,
			*movesListLabel;

		QTextEdit *listMoves,
			*infosGame;
		
		QVBoxLayout *mainLayout;
		QGridLayout	*topLayout;
		QHBoxLayout *toptopLayout, *centerLayout;

		void setColorP1( ColorPawn );
		void setColorP2( ColorPawn );
		void setNameP1( QString name );
		void setNameP2( QString name );
		void setTypeP1( TypePlayer );
		void setTypeP2( TypePlayer );
		void setScoreP1( int score );
		void setScoreP2( int score );
		void setMovesP1( int num );
		void setMovesP2( int num );


		
	public slots:
		
		void updatingName(Player*);
		void updatingType(Player*);
		void updatingColor(Player*);
		void updatingScore(Player*);
		void updatingMoves(Player*);
		void setListMoves( QString);
		void setInfosGame(QString);
};

#endif
